package com.matt.sooncleaner.junk;

import androidx.annotation.NonNull;

import java.util.ArrayList;

/**
 * Created by Administrator on 2017/11/30 0030.
 */

public class JunkChildBean implements Comparable<JunkChildBean> {
    private String name = "";
    private String path = "";
    private long size = 0;
    private ArrayList<AppCacheBean> appCacheBeens = new ArrayList<>();
    private boolean isAppCache;

    public boolean isAppCache() {
        return isAppCache;
    }

    public void setAppCache(boolean appCache) {
        isAppCache = appCache;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public ArrayList<AppCacheBean> getAppCacheBeens() {
        return appCacheBeens;
    }

    public void setAppCacheBeens(ArrayList<AppCacheBean> appCacheBeens) {
        this.appCacheBeens = appCacheBeens;
    }


    @Override
    public int compareTo(@NonNull JunkChildBean junkChildBean) {
        return (this.getSize() < junkChildBean.getSize() ? -1 :
                (this.getSize() == junkChildBean.getSize() ? 0 : 1));
    }
}